import request from '@/utils/request'

// 查询安全检查台账列表
export function getListFirst(query) {
  return request({
    url: '/record/record/getCheckLedger',
    method: 'get',
    params: query
  })
}

//整改人下拉
export function getRevisePeople(query) {
  return request({
    url: '/common/user/list',
    method: 'get',
    params: query
  })
}
//检查类型

export function getCheckType() {
  return request({
    url: '/common/type/gettype',
    method: 'get',
  })
}

//检查区域
export function getDutyArea(query) {
  return request({
    url: '/duty/region/region/tree',
    method: 'get',
    params: query
  })
}

///
export function getAddd() {
  let data = {
    typeNo:null,
  }
  return request({
    url: 'list/type/treeselect/all',
    method: 'post',
    data: data
  })
}

//分包单位
export function getSubUnits() {
  return request({
    url: 'common/cooperator/enterpriseTypeList',
    method: 'get',
  })
}

//新增保存
export function formSubmit(query) {
  return request({
    url: '/record/record',
    method: 'post',
    data: query
  })
}

//补录
export function SubmitSup(query) {
  return request({
    url: '/record/record/addCheckRecord',
    method: 'post',
    data: query
  })
}
//复查提交
export function reviewSubmit(query) {
  return request({
    url: '/review/review',
    method: 'post',
    data: query
  })
}
//移交下拉
export function handOverList(query) {
  return request({
    url: '/common/project/transferUser',
    method: 'get',
    params: query
  })
}
//移交提交
export function handOverSub(query) {
  return request({
    url: '/common/project/transfer',
    method: 'post',
    data: query
  })
}
//延期提交
export function PickSub(query) {
  return request({
    url: '/extension/requests',
    method: 'post',
    data: query
  })
}